package org.yohailong.javabase.dynamiclambda;

import java.util.Date;

/**
 * @author 朱海龙
 * 2025/6/4 09:34
 */
public class DynamicTime {

    private Date createTime;

    public static DynamicTime randomInstance() {
        final DynamicTime runtime = new DynamicTime();
        runtime.setCreateTime(new Date());
        return runtime;
    }

    public Date getDynamicTime() {
        createTime = new Date();
        return createTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

}
